from django.db import models
from django.contrib.auth.models import User
from osmp.host.models import Product
# Create your models here.

class Accident(models.Model):
    description = models.CharField(max_length=50)
    reason = models.CharField(max_length=100)
    process = models.CharField(max_length=500)
    experience = models.CharField(max_length=500)
    duty = models.CharField(max_length=20)
    abegintime = models.CharField(max_length=20)
    acpid = models.ForeignKey(Product)
    alevel = models.CharField(max_length=20)
    atype = models.CharField(max_length=20)
    time = models.CharField(max_length=20)

    def __unicode__(self):
        return u"%s" % (self.description)

    def __str__(self):
        return "%s" % (self.description)